import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { DevicePort } from 'src/entities/DevicePort';
import { Repository } from 'typeorm';
import { BaseModelService } from '../base-model/base-model.service';

@Injectable()
export class DevicePortModelService extends BaseModelService<DevicePort>{
    constructor(
        @InjectRepository(DevicePort) protected repository:Repository<DevicePort>
    ) {
        super()
        this.primaryKey = 'portId'
    }
}
